/*
 * FeaturePoint2D.cpp
 *
 *  Created on: Apr 17, 2009
 *      Author: wrice
 */

#include "MyVideoTrace.h"
namespace MyVideoTrace {

FeaturePoint2D::FeaturePoint2D(FeaturePointPtr featurePoint, FrameNumber frameNumber)
: featurePoint_(featurePoint), frameNumber_(frameNumber)
{}

bool FeaturePoint2D::isExist() const {
	return NULL != featurePoint_ && featurePoint_->endPoint2D() != getPoint2D();
}

Point2D FeaturePoint2D::getPoint() const {
	return getPoint2D()->second;
}

FeaturePoint::Points2DIterator FeaturePoint2D::getPoint2D() const {
	return featurePoint_->findPoint2D(frameNumber_);
}

}
